ioemu: pass-through: pt_bar_mapping fix
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Jul 2008 09:39:13 +0000 (10:39 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Jul 2008 09:39:13 +0000 (10:39 +0100)
commitb617f63a3bcc50a788c95992e93ffe4f3c0bf7a8
treecf7224871b38fc2f344fd227b53ca14113c42d3c
parent292155263ca382999e566f4359b1cc73c189d2ca
ioemu: pass-through: pt_bar_mapping fix

In pt_bar_mapping function, r->addr should not be changed by invalid
value(-1). This value(-1) causes failure of mapping BAR when I/O Space
or Memory Space enable bit is updated repeatedly by native windows
driver.

This situation occurs in Windows Vista guest.

Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
tools/ioemu/hw/pass-through.c